/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.prototype;

/**
 *
 * @author minga
 */
public class Dog implements Prototype{
    String sound;
    public Dog(String sound)
    {
        this.sound = sound;
    }
    @Override
    public Prototype doClone() {
       return new Dog(sound);
    }
    public String toString()
    {
        return "the dog sound is"+sound;
    }
}
